package com.linxs.me.intefaces.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 
 * @author Linxiaosheng
 *
 */
@Controller
public class AdminController {

	@RequestMapping(value = "/admin/index", method = RequestMethod.GET)
	public String admin(HttpServletRequest request) {
		return "admin/index";
	}
	
	public String signOut(HttpServletRequest request) {
		request.getSession().invalidate();
		
		return "redirect:/";
	}

}
